// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by sidekick. DO NOT EDIT.
#![allow(rustdoc::redundant_explicit_links)]
#![allow(rustdoc::broken_intra_doc_links)]

/// Implements a client for the Network Services API.
///
/// # Example
/// ```
/// # tokio_test::block_on(async {
/// # use google_cloud_networkservices_v1::client::DepService;
/// let client = DepService::builder().build().await?;
/// // use `client` to make requests to the Network Services API.
/// # gax::client_builder::Result::<()>::Ok(()) });
/// ```
///
/// # Service Description
///
/// Service describing handlers for resources.
///
/// # Configuration
///
/// To configure `DepService` use the `with_*` methods in the type returned
/// by [builder()][DepService::builder]. The default configuration should
/// work for most applications. Common configuration changes include
///
/// * [with_endpoint()]: by default this client uses the global default endpoint
///   (`https://networkservices.googleapis.com`). Applications using regional
///   endpoints or running in restricted networks (e.g. a network configured
//    with [Private Google Access with VPC Service Controls]) may want to
///   override this default.
/// * [with_credentials()]: by default this client uses
///   [Application Default Credentials]. Applications using custom
///   authentication may need to override this default.
///
/// [with_endpoint()]: super::builder::dep_service::ClientBuilder::with_endpoint
/// [with_credentials()]: super::builder::dep_service::ClientBuilder::credentials
/// [Private Google Access with VPC Service Controls]: https://cloud.google.com/vpc-service-controls/docs/private-connectivity
/// [Application Default Credentials]: https://cloud.google.com/docs/authentication#adc
///
/// # Pooling and Cloning
///
/// `DepService` holds a connection pool internally, it is advised to
/// create one and the reuse it.  You do not need to wrap `DepService` in
/// an [Rc](std::rc::Rc) or [Arc](std::sync::Arc) to reuse it, because it
/// already uses an `Arc` internally.
#[derive(Clone, Debug)]
pub struct DepService {
    inner: std::sync::Arc<dyn super::stub::dynamic::DepService>,
}

impl DepService {
    /// Returns a builder for [DepService].
    ///
    /// ```
    /// # tokio_test::block_on(async {
    /// # use google_cloud_networkservices_v1::client::DepService;
    /// let client = DepService::builder().build().await?;
    /// # gax::client_builder::Result::<()>::Ok(()) });
    /// ```
    pub fn builder() -> super::builder::dep_service::ClientBuilder {
        gax::client_builder::internal::new_builder(super::builder::dep_service::client::Factory)
    }

    /// Creates a new client from the provided stub.
    ///
    /// The most common case for calling this function is in tests mocking the
    /// client's behavior.
    pub fn from_stub<T>(stub: T) -> Self
    where
        T: super::stub::DepService + 'static,
    {
        Self {
            inner: std::sync::Arc::new(stub),
        }
    }

    pub(crate) async fn new(
        config: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<Self> {
        let inner = Self::build_inner(config).await?;
        Ok(Self { inner })
    }

    async fn build_inner(
        conf: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<std::sync::Arc<dyn super::stub::dynamic::DepService>> {
        if gaxi::options::tracing_enabled(&conf) {
            return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
        }
        Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
    }

    async fn build_transport(
        conf: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<impl super::stub::DepService> {
        super::transport::DepService::new(conf).await
    }

    async fn build_with_tracing(
        conf: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<impl super::stub::DepService> {
        Self::build_transport(conf)
            .await
            .map(super::tracing::DepService::new)
    }

    /// Lists `LbTrafficExtension` resources in a given project and location.
    pub fn list_lb_traffic_extensions(
        &self,
    ) -> super::builder::dep_service::ListLbTrafficExtensions {
        super::builder::dep_service::ListLbTrafficExtensions::new(self.inner.clone())
    }

    /// Gets details of the specified `LbTrafficExtension` resource.
    pub fn get_lb_traffic_extension(&self) -> super::builder::dep_service::GetLbTrafficExtension {
        super::builder::dep_service::GetLbTrafficExtension::new(self.inner.clone())
    }

    /// Creates a new `LbTrafficExtension` resource in a given project and
    /// location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_lb_traffic_extension(
        &self,
    ) -> super::builder::dep_service::CreateLbTrafficExtension {
        super::builder::dep_service::CreateLbTrafficExtension::new(self.inner.clone())
    }

    /// Updates the parameters of the specified `LbTrafficExtension` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_lb_traffic_extension(
        &self,
    ) -> super::builder::dep_service::UpdateLbTrafficExtension {
        super::builder::dep_service::UpdateLbTrafficExtension::new(self.inner.clone())
    }

    /// Deletes the specified `LbTrafficExtension` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_lb_traffic_extension(
        &self,
    ) -> super::builder::dep_service::DeleteLbTrafficExtension {
        super::builder::dep_service::DeleteLbTrafficExtension::new(self.inner.clone())
    }

    /// Lists `LbRouteExtension` resources in a given project and location.
    pub fn list_lb_route_extensions(&self) -> super::builder::dep_service::ListLbRouteExtensions {
        super::builder::dep_service::ListLbRouteExtensions::new(self.inner.clone())
    }

    /// Gets details of the specified `LbRouteExtension` resource.
    pub fn get_lb_route_extension(&self) -> super::builder::dep_service::GetLbRouteExtension {
        super::builder::dep_service::GetLbRouteExtension::new(self.inner.clone())
    }

    /// Creates a new `LbRouteExtension` resource in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_lb_route_extension(&self) -> super::builder::dep_service::CreateLbRouteExtension {
        super::builder::dep_service::CreateLbRouteExtension::new(self.inner.clone())
    }

    /// Updates the parameters of the specified `LbRouteExtension` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_lb_route_extension(&self) -> super::builder::dep_service::UpdateLbRouteExtension {
        super::builder::dep_service::UpdateLbRouteExtension::new(self.inner.clone())
    }

    /// Deletes the specified `LbRouteExtension` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_lb_route_extension(&self) -> super::builder::dep_service::DeleteLbRouteExtension {
        super::builder::dep_service::DeleteLbRouteExtension::new(self.inner.clone())
    }

    /// Lists `LbEdgeExtension` resources in a given project and location.
    pub fn list_lb_edge_extensions(&self) -> super::builder::dep_service::ListLbEdgeExtensions {
        super::builder::dep_service::ListLbEdgeExtensions::new(self.inner.clone())
    }

    /// Gets details of the specified `LbEdgeExtension` resource.
    pub fn get_lb_edge_extension(&self) -> super::builder::dep_service::GetLbEdgeExtension {
        super::builder::dep_service::GetLbEdgeExtension::new(self.inner.clone())
    }

    /// Creates a new `LbEdgeExtension` resource in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_lb_edge_extension(&self) -> super::builder::dep_service::CreateLbEdgeExtension {
        super::builder::dep_service::CreateLbEdgeExtension::new(self.inner.clone())
    }

    /// Updates the parameters of the specified `LbEdgeExtension` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_lb_edge_extension(&self) -> super::builder::dep_service::UpdateLbEdgeExtension {
        super::builder::dep_service::UpdateLbEdgeExtension::new(self.inner.clone())
    }

    /// Deletes the specified `LbEdgeExtension` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_lb_edge_extension(&self) -> super::builder::dep_service::DeleteLbEdgeExtension {
        super::builder::dep_service::DeleteLbEdgeExtension::new(self.inner.clone())
    }

    /// Lists `AuthzExtension` resources in a given project and location.
    pub fn list_authz_extensions(&self) -> super::builder::dep_service::ListAuthzExtensions {
        super::builder::dep_service::ListAuthzExtensions::new(self.inner.clone())
    }

    /// Gets details of the specified `AuthzExtension` resource.
    pub fn get_authz_extension(&self) -> super::builder::dep_service::GetAuthzExtension {
        super::builder::dep_service::GetAuthzExtension::new(self.inner.clone())
    }

    /// Creates a new `AuthzExtension` resource in a given project
    /// and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_authz_extension(&self) -> super::builder::dep_service::CreateAuthzExtension {
        super::builder::dep_service::CreateAuthzExtension::new(self.inner.clone())
    }

    /// Updates the parameters of the specified `AuthzExtension`
    /// resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_authz_extension(&self) -> super::builder::dep_service::UpdateAuthzExtension {
        super::builder::dep_service::UpdateAuthzExtension::new(self.inner.clone())
    }

    /// Deletes the specified `AuthzExtension` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_authz_extension(&self) -> super::builder::dep_service::DeleteAuthzExtension {
        super::builder::dep_service::DeleteAuthzExtension::new(self.inner.clone())
    }

    /// Lists information about the supported locations for this service.
    pub fn list_locations(&self) -> super::builder::dep_service::ListLocations {
        super::builder::dep_service::ListLocations::new(self.inner.clone())
    }

    /// Gets information about a location.
    pub fn get_location(&self) -> super::builder::dep_service::GetLocation {
        super::builder::dep_service::GetLocation::new(self.inner.clone())
    }

    /// Sets the access control policy on the specified resource. Replaces
    /// any existing policy.
    ///
    /// Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
    /// errors.
    pub fn set_iam_policy(&self) -> super::builder::dep_service::SetIamPolicy {
        super::builder::dep_service::SetIamPolicy::new(self.inner.clone())
    }

    /// Gets the access control policy for a resource. Returns an empty policy
    /// if the resource exists and does not have a policy set.
    pub fn get_iam_policy(&self) -> super::builder::dep_service::GetIamPolicy {
        super::builder::dep_service::GetIamPolicy::new(self.inner.clone())
    }

    /// Returns permissions that a caller has on the specified resource. If the
    /// resource does not exist, this will return an empty set of
    /// permissions, not a `NOT_FOUND` error.
    ///
    /// Note: This operation is designed to be used for building
    /// permission-aware UIs and command-line tools, not for authorization
    /// checking. This operation may "fail open" without warning.
    pub fn test_iam_permissions(&self) -> super::builder::dep_service::TestIamPermissions {
        super::builder::dep_service::TestIamPermissions::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn list_operations(&self) -> super::builder::dep_service::ListOperations {
        super::builder::dep_service::ListOperations::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn get_operation(&self) -> super::builder::dep_service::GetOperation {
        super::builder::dep_service::GetOperation::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn delete_operation(&self) -> super::builder::dep_service::DeleteOperation {
        super::builder::dep_service::DeleteOperation::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn cancel_operation(&self) -> super::builder::dep_service::CancelOperation {
        super::builder::dep_service::CancelOperation::new(self.inner.clone())
    }
}

/// Implements a client for the Network Services API.
///
/// # Example
/// ```
/// # tokio_test::block_on(async {
/// # use google_cloud_networkservices_v1::client::NetworkServices;
/// let client = NetworkServices::builder().build().await?;
/// // use `client` to make requests to the Network Services API.
/// # gax::client_builder::Result::<()>::Ok(()) });
/// ```
///
/// # Service Description
///
/// Service describing handlers for resources.
///
/// # Configuration
///
/// To configure `NetworkServices` use the `with_*` methods in the type returned
/// by [builder()][NetworkServices::builder]. The default configuration should
/// work for most applications. Common configuration changes include
///
/// * [with_endpoint()]: by default this client uses the global default endpoint
///   (`https://networkservices.googleapis.com`). Applications using regional
///   endpoints or running in restricted networks (e.g. a network configured
//    with [Private Google Access with VPC Service Controls]) may want to
///   override this default.
/// * [with_credentials()]: by default this client uses
///   [Application Default Credentials]. Applications using custom
///   authentication may need to override this default.
///
/// [with_endpoint()]: super::builder::network_services::ClientBuilder::with_endpoint
/// [with_credentials()]: super::builder::network_services::ClientBuilder::credentials
/// [Private Google Access with VPC Service Controls]: https://cloud.google.com/vpc-service-controls/docs/private-connectivity
/// [Application Default Credentials]: https://cloud.google.com/docs/authentication#adc
///
/// # Pooling and Cloning
///
/// `NetworkServices` holds a connection pool internally, it is advised to
/// create one and the reuse it.  You do not need to wrap `NetworkServices` in
/// an [Rc](std::rc::Rc) or [Arc](std::sync::Arc) to reuse it, because it
/// already uses an `Arc` internally.
#[derive(Clone, Debug)]
pub struct NetworkServices {
    inner: std::sync::Arc<dyn super::stub::dynamic::NetworkServices>,
}

impl NetworkServices {
    /// Returns a builder for [NetworkServices].
    ///
    /// ```
    /// # tokio_test::block_on(async {
    /// # use google_cloud_networkservices_v1::client::NetworkServices;
    /// let client = NetworkServices::builder().build().await?;
    /// # gax::client_builder::Result::<()>::Ok(()) });
    /// ```
    pub fn builder() -> super::builder::network_services::ClientBuilder {
        gax::client_builder::internal::new_builder(
            super::builder::network_services::client::Factory,
        )
    }

    /// Creates a new client from the provided stub.
    ///
    /// The most common case for calling this function is in tests mocking the
    /// client's behavior.
    pub fn from_stub<T>(stub: T) -> Self
    where
        T: super::stub::NetworkServices + 'static,
    {
        Self {
            inner: std::sync::Arc::new(stub),
        }
    }

    pub(crate) async fn new(
        config: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<Self> {
        let inner = Self::build_inner(config).await?;
        Ok(Self { inner })
    }

    async fn build_inner(
        conf: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<std::sync::Arc<dyn super::stub::dynamic::NetworkServices>>
    {
        if gaxi::options::tracing_enabled(&conf) {
            return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
        }
        Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
    }

    async fn build_transport(
        conf: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<impl super::stub::NetworkServices> {
        super::transport::NetworkServices::new(conf).await
    }

    async fn build_with_tracing(
        conf: gaxi::options::ClientConfig,
    ) -> gax::client_builder::Result<impl super::stub::NetworkServices> {
        Self::build_transport(conf)
            .await
            .map(super::tracing::NetworkServices::new)
    }

    /// Lists EndpointPolicies in a given project and location.
    pub fn list_endpoint_policies(&self) -> super::builder::network_services::ListEndpointPolicies {
        super::builder::network_services::ListEndpointPolicies::new(self.inner.clone())
    }

    /// Gets details of a single EndpointPolicy.
    pub fn get_endpoint_policy(&self) -> super::builder::network_services::GetEndpointPolicy {
        super::builder::network_services::GetEndpointPolicy::new(self.inner.clone())
    }

    /// Creates a new EndpointPolicy in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_endpoint_policy(&self) -> super::builder::network_services::CreateEndpointPolicy {
        super::builder::network_services::CreateEndpointPolicy::new(self.inner.clone())
    }

    /// Updates the parameters of a single EndpointPolicy.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_endpoint_policy(&self) -> super::builder::network_services::UpdateEndpointPolicy {
        super::builder::network_services::UpdateEndpointPolicy::new(self.inner.clone())
    }

    /// Deletes a single EndpointPolicy.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_endpoint_policy(&self) -> super::builder::network_services::DeleteEndpointPolicy {
        super::builder::network_services::DeleteEndpointPolicy::new(self.inner.clone())
    }

    /// Lists `WasmPluginVersion` resources in a given project and
    /// location.
    pub fn list_wasm_plugin_versions(
        &self,
    ) -> super::builder::network_services::ListWasmPluginVersions {
        super::builder::network_services::ListWasmPluginVersions::new(self.inner.clone())
    }

    /// Gets details of the specified `WasmPluginVersion` resource.
    pub fn get_wasm_plugin_version(
        &self,
    ) -> super::builder::network_services::GetWasmPluginVersion {
        super::builder::network_services::GetWasmPluginVersion::new(self.inner.clone())
    }

    /// Creates a new `WasmPluginVersion` resource in a given project
    /// and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_wasm_plugin_version(
        &self,
    ) -> super::builder::network_services::CreateWasmPluginVersion {
        super::builder::network_services::CreateWasmPluginVersion::new(self.inner.clone())
    }

    /// Deletes the specified `WasmPluginVersion` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_wasm_plugin_version(
        &self,
    ) -> super::builder::network_services::DeleteWasmPluginVersion {
        super::builder::network_services::DeleteWasmPluginVersion::new(self.inner.clone())
    }

    /// Lists `WasmPlugin` resources in a given project and
    /// location.
    pub fn list_wasm_plugins(&self) -> super::builder::network_services::ListWasmPlugins {
        super::builder::network_services::ListWasmPlugins::new(self.inner.clone())
    }

    /// Gets details of the specified `WasmPlugin` resource.
    pub fn get_wasm_plugin(&self) -> super::builder::network_services::GetWasmPlugin {
        super::builder::network_services::GetWasmPlugin::new(self.inner.clone())
    }

    /// Creates a new `WasmPlugin` resource in a given project
    /// and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_wasm_plugin(&self) -> super::builder::network_services::CreateWasmPlugin {
        super::builder::network_services::CreateWasmPlugin::new(self.inner.clone())
    }

    /// Updates the parameters of the specified `WasmPlugin` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_wasm_plugin(&self) -> super::builder::network_services::UpdateWasmPlugin {
        super::builder::network_services::UpdateWasmPlugin::new(self.inner.clone())
    }

    /// Deletes the specified `WasmPlugin` resource.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_wasm_plugin(&self) -> super::builder::network_services::DeleteWasmPlugin {
        super::builder::network_services::DeleteWasmPlugin::new(self.inner.clone())
    }

    /// Lists Gateways in a given project and location.
    pub fn list_gateways(&self) -> super::builder::network_services::ListGateways {
        super::builder::network_services::ListGateways::new(self.inner.clone())
    }

    /// Gets details of a single Gateway.
    pub fn get_gateway(&self) -> super::builder::network_services::GetGateway {
        super::builder::network_services::GetGateway::new(self.inner.clone())
    }

    /// Creates a new Gateway in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_gateway(&self) -> super::builder::network_services::CreateGateway {
        super::builder::network_services::CreateGateway::new(self.inner.clone())
    }

    /// Updates the parameters of a single Gateway.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_gateway(&self) -> super::builder::network_services::UpdateGateway {
        super::builder::network_services::UpdateGateway::new(self.inner.clone())
    }

    /// Deletes a single Gateway.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_gateway(&self) -> super::builder::network_services::DeleteGateway {
        super::builder::network_services::DeleteGateway::new(self.inner.clone())
    }

    /// Lists GrpcRoutes in a given project and location.
    pub fn list_grpc_routes(&self) -> super::builder::network_services::ListGrpcRoutes {
        super::builder::network_services::ListGrpcRoutes::new(self.inner.clone())
    }

    /// Gets details of a single GrpcRoute.
    pub fn get_grpc_route(&self) -> super::builder::network_services::GetGrpcRoute {
        super::builder::network_services::GetGrpcRoute::new(self.inner.clone())
    }

    /// Creates a new GrpcRoute in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_grpc_route(&self) -> super::builder::network_services::CreateGrpcRoute {
        super::builder::network_services::CreateGrpcRoute::new(self.inner.clone())
    }

    /// Updates the parameters of a single GrpcRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_grpc_route(&self) -> super::builder::network_services::UpdateGrpcRoute {
        super::builder::network_services::UpdateGrpcRoute::new(self.inner.clone())
    }

    /// Deletes a single GrpcRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_grpc_route(&self) -> super::builder::network_services::DeleteGrpcRoute {
        super::builder::network_services::DeleteGrpcRoute::new(self.inner.clone())
    }

    /// Lists HttpRoute in a given project and location.
    pub fn list_http_routes(&self) -> super::builder::network_services::ListHttpRoutes {
        super::builder::network_services::ListHttpRoutes::new(self.inner.clone())
    }

    /// Gets details of a single HttpRoute.
    pub fn get_http_route(&self) -> super::builder::network_services::GetHttpRoute {
        super::builder::network_services::GetHttpRoute::new(self.inner.clone())
    }

    /// Creates a new HttpRoute in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_http_route(&self) -> super::builder::network_services::CreateHttpRoute {
        super::builder::network_services::CreateHttpRoute::new(self.inner.clone())
    }

    /// Updates the parameters of a single HttpRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_http_route(&self) -> super::builder::network_services::UpdateHttpRoute {
        super::builder::network_services::UpdateHttpRoute::new(self.inner.clone())
    }

    /// Deletes a single HttpRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_http_route(&self) -> super::builder::network_services::DeleteHttpRoute {
        super::builder::network_services::DeleteHttpRoute::new(self.inner.clone())
    }

    /// Lists TcpRoute in a given project and location.
    pub fn list_tcp_routes(&self) -> super::builder::network_services::ListTcpRoutes {
        super::builder::network_services::ListTcpRoutes::new(self.inner.clone())
    }

    /// Gets details of a single TcpRoute.
    pub fn get_tcp_route(&self) -> super::builder::network_services::GetTcpRoute {
        super::builder::network_services::GetTcpRoute::new(self.inner.clone())
    }

    /// Creates a new TcpRoute in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_tcp_route(&self) -> super::builder::network_services::CreateTcpRoute {
        super::builder::network_services::CreateTcpRoute::new(self.inner.clone())
    }

    /// Updates the parameters of a single TcpRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_tcp_route(&self) -> super::builder::network_services::UpdateTcpRoute {
        super::builder::network_services::UpdateTcpRoute::new(self.inner.clone())
    }

    /// Deletes a single TcpRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_tcp_route(&self) -> super::builder::network_services::DeleteTcpRoute {
        super::builder::network_services::DeleteTcpRoute::new(self.inner.clone())
    }

    /// Lists TlsRoute in a given project and location.
    pub fn list_tls_routes(&self) -> super::builder::network_services::ListTlsRoutes {
        super::builder::network_services::ListTlsRoutes::new(self.inner.clone())
    }

    /// Gets details of a single TlsRoute.
    pub fn get_tls_route(&self) -> super::builder::network_services::GetTlsRoute {
        super::builder::network_services::GetTlsRoute::new(self.inner.clone())
    }

    /// Creates a new TlsRoute in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_tls_route(&self) -> super::builder::network_services::CreateTlsRoute {
        super::builder::network_services::CreateTlsRoute::new(self.inner.clone())
    }

    /// Updates the parameters of a single TlsRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_tls_route(&self) -> super::builder::network_services::UpdateTlsRoute {
        super::builder::network_services::UpdateTlsRoute::new(self.inner.clone())
    }

    /// Deletes a single TlsRoute.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_tls_route(&self) -> super::builder::network_services::DeleteTlsRoute {
        super::builder::network_services::DeleteTlsRoute::new(self.inner.clone())
    }

    /// Lists ServiceBinding in a given project and location.
    pub fn list_service_bindings(&self) -> super::builder::network_services::ListServiceBindings {
        super::builder::network_services::ListServiceBindings::new(self.inner.clone())
    }

    /// Gets details of a single ServiceBinding.
    pub fn get_service_binding(&self) -> super::builder::network_services::GetServiceBinding {
        super::builder::network_services::GetServiceBinding::new(self.inner.clone())
    }

    /// Creates a new ServiceBinding in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_service_binding(&self) -> super::builder::network_services::CreateServiceBinding {
        super::builder::network_services::CreateServiceBinding::new(self.inner.clone())
    }

    /// Updates the parameters of a single ServiceBinding.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_service_binding(&self) -> super::builder::network_services::UpdateServiceBinding {
        super::builder::network_services::UpdateServiceBinding::new(self.inner.clone())
    }

    /// Deletes a single ServiceBinding.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_service_binding(&self) -> super::builder::network_services::DeleteServiceBinding {
        super::builder::network_services::DeleteServiceBinding::new(self.inner.clone())
    }

    /// Lists Meshes in a given project and location.
    pub fn list_meshes(&self) -> super::builder::network_services::ListMeshes {
        super::builder::network_services::ListMeshes::new(self.inner.clone())
    }

    /// Gets details of a single Mesh.
    pub fn get_mesh(&self) -> super::builder::network_services::GetMesh {
        super::builder::network_services::GetMesh::new(self.inner.clone())
    }

    /// Creates a new Mesh in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_mesh(&self) -> super::builder::network_services::CreateMesh {
        super::builder::network_services::CreateMesh::new(self.inner.clone())
    }

    /// Updates the parameters of a single Mesh.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_mesh(&self) -> super::builder::network_services::UpdateMesh {
        super::builder::network_services::UpdateMesh::new(self.inner.clone())
    }

    /// Deletes a single Mesh.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_mesh(&self) -> super::builder::network_services::DeleteMesh {
        super::builder::network_services::DeleteMesh::new(self.inner.clone())
    }

    /// Lists ServiceLbPolicies in a given project and location.
    pub fn list_service_lb_policies(
        &self,
    ) -> super::builder::network_services::ListServiceLbPolicies {
        super::builder::network_services::ListServiceLbPolicies::new(self.inner.clone())
    }

    /// Gets details of a single ServiceLbPolicy.
    pub fn get_service_lb_policy(&self) -> super::builder::network_services::GetServiceLbPolicy {
        super::builder::network_services::GetServiceLbPolicy::new(self.inner.clone())
    }

    /// Creates a new ServiceLbPolicy in a given project and location.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn create_service_lb_policy(
        &self,
    ) -> super::builder::network_services::CreateServiceLbPolicy {
        super::builder::network_services::CreateServiceLbPolicy::new(self.inner.clone())
    }

    /// Updates the parameters of a single ServiceLbPolicy.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn update_service_lb_policy(
        &self,
    ) -> super::builder::network_services::UpdateServiceLbPolicy {
        super::builder::network_services::UpdateServiceLbPolicy::new(self.inner.clone())
    }

    /// Deletes a single ServiceLbPolicy.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    pub fn delete_service_lb_policy(
        &self,
    ) -> super::builder::network_services::DeleteServiceLbPolicy {
        super::builder::network_services::DeleteServiceLbPolicy::new(self.inner.clone())
    }

    /// Get a single RouteView of a Gateway.
    pub fn get_gateway_route_view(&self) -> super::builder::network_services::GetGatewayRouteView {
        super::builder::network_services::GetGatewayRouteView::new(self.inner.clone())
    }

    /// Get a single RouteView of a Mesh.
    pub fn get_mesh_route_view(&self) -> super::builder::network_services::GetMeshRouteView {
        super::builder::network_services::GetMeshRouteView::new(self.inner.clone())
    }

    /// Lists RouteViews
    pub fn list_gateway_route_views(
        &self,
    ) -> super::builder::network_services::ListGatewayRouteViews {
        super::builder::network_services::ListGatewayRouteViews::new(self.inner.clone())
    }

    /// Lists RouteViews
    pub fn list_mesh_route_views(&self) -> super::builder::network_services::ListMeshRouteViews {
        super::builder::network_services::ListMeshRouteViews::new(self.inner.clone())
    }

    /// Lists information about the supported locations for this service.
    pub fn list_locations(&self) -> super::builder::network_services::ListLocations {
        super::builder::network_services::ListLocations::new(self.inner.clone())
    }

    /// Gets information about a location.
    pub fn get_location(&self) -> super::builder::network_services::GetLocation {
        super::builder::network_services::GetLocation::new(self.inner.clone())
    }

    /// Sets the access control policy on the specified resource. Replaces
    /// any existing policy.
    ///
    /// Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
    /// errors.
    pub fn set_iam_policy(&self) -> super::builder::network_services::SetIamPolicy {
        super::builder::network_services::SetIamPolicy::new(self.inner.clone())
    }

    /// Gets the access control policy for a resource. Returns an empty policy
    /// if the resource exists and does not have a policy set.
    pub fn get_iam_policy(&self) -> super::builder::network_services::GetIamPolicy {
        super::builder::network_services::GetIamPolicy::new(self.inner.clone())
    }

    /// Returns permissions that a caller has on the specified resource. If the
    /// resource does not exist, this will return an empty set of
    /// permissions, not a `NOT_FOUND` error.
    ///
    /// Note: This operation is designed to be used for building
    /// permission-aware UIs and command-line tools, not for authorization
    /// checking. This operation may "fail open" without warning.
    pub fn test_iam_permissions(&self) -> super::builder::network_services::TestIamPermissions {
        super::builder::network_services::TestIamPermissions::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn list_operations(&self) -> super::builder::network_services::ListOperations {
        super::builder::network_services::ListOperations::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn get_operation(&self) -> super::builder::network_services::GetOperation {
        super::builder::network_services::GetOperation::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn delete_operation(&self) -> super::builder::network_services::DeleteOperation {
        super::builder::network_services::DeleteOperation::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: longrunning::client::Operations
    pub fn cancel_operation(&self) -> super::builder::network_services::CancelOperation {
        super::builder::network_services::CancelOperation::new(self.inner.clone())
    }
}
